package logic

import (
	"my_chat/dao/mysql"
	"my_chat/model"
)

func GetUserComids(userId int64) (comIds []int64, err error) {
	return mysql.GetUserComids(userId)
}

func SaveMessage(date []byte) (err error) {
	return mysql.SaveMessage(date)
}

func GetMessages(p *model.ContactValid) (data interface{}, err error) {
	return mysql.GetMessages(p.UserId, p.Dstobj, p.Cmd)
}
